﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace BeniBastanYaratWinFormProject
{
    public partial class StokTanımlama : Form
    {
        public StokTanımlama()
        {
            InitializeComponent();
        }
        SqlConnection cnn = new SqlConnection("Server=mssql.mustafadindar.com;Database=BeniBastanYaratDB;uid=Admin3207;pwd=Y1234567?");
        private void StokTanımlama_Load(object sender, EventArgs e)
        {
           
            SqlDataAdapter adp = new SqlDataAdapter("Select * from Urunler,Kategoriler", cnn);
            DataSet ds = new DataSet();
            adp.Fill(ds);
            dataGridView1.DataSource = ds.Tables[0];              
        }

        
    }
}
